// Toast 提示

.toast {
    &.toast-custom {
        display: none;
        position: absolute;
        z-index: $toast-zindex;
        top: $toast-spacing;
        right: $toast-spacing;
        width: $toast-width;
        border: 0;

        &.toast-left {
            left: $toast-spacing;
            right: auto;
        }

        &.toast-bottom {
            top: auto;
            bottom: $toast-spacing;
        }

        &.toast-top {
            bottom: auto;
            top: $toast-spacing;
        }

        &.toast-center-v {
            top: 45%;
            bottom: auto;
        }

        &.toast-center-h {
            right: auto;
            left: 50%;
            margin-left: -($toast-width/2);
        }

        .toast-header {
            padding: .5rem 1rem;
        }

        .toast-body {
            padding: .5rem 1rem;
            font-size: .9rem;
        }

        &.show {
            display: block;
        }

        &.toast-fill {
            background-color: #fff;
        }
    }

    // 标题
    .toast-title {
        font-size: .9rem;
        font-weight: 600;
        margin-right: auto !important;
    }

    // 时间
    .toast-time {
        margin-left: .5rem;
        font-size: .85rem;
        font-weight: 400;
        color: e-base-color(label, 3);
    }

    // 图标
    .toast-icon {
        margin-right: .5rem;
        font-size: 1.2rem;
        color: e-base-color(label, 2);
    }

    // 关闭
    .toast-close {
        @include e-button-reset();

        margin-left: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;

        i {
            font-size: 1.1rem;
            color: e-base-color(label, 2);

            &:before {
                line-height: 0;
                vertical-align: middle;
            }
        }

        &:hover {
            i {
                color: e-brand-color();
            }
        }
    }
}